<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<title>我的银行卡</title>
<link href="Style/Common.css" rel="stylesheet">
<link href="Style/User.css" rel="stylesheet">
<script src="Js/jquery.min.js" type="text/javascript"></script>
<script src="Js/Banner.js" type="text/javascript"></script>
    <script language="javascript">
        function showmoney() {
            $.ajax({
                type: "post",
                url: "/ServiceInterface/MyBankAndMoney.ashx",
                data: { flag: "myaccount" },
                dataType: "text",
                async: true,
                success: function (data) {
                    //alert(data);
                    $("#b_ye").html(data.split('|')[0]);
                    $("#b_by").html("<i>¥</i>" + data.split('|')[2]);
                    $("#b_lj").html("<i>¥</i>" + data.split('|')[1]);
                }
            });
        }

        function listmoney() {
            $.ajax({
                type: "post",
                url: "/ServiceInterface/MyBankAndMoney.ashx",
                data: { flag: "listaccount" },
                dataType: "text",
                async: false,
                success: function (data) {
                    var html = "";
                    var dataInfo = eval(data);
                    for (var i = 0; i < dataInfo.length; i++) {
                        var info = dataInfo[i].detail_type == "cz" ? "收入" : "提现";
                        if (dataInfo[i].detail_type == "xf2") { info = "提现扣费"; }
                        if (dataInfo[i].detail_type == "xfye") { info = "余额支付"; }
                        html += "<tr><td>" + dataInfo[i].createtime + "</td><td>" + dataInfo[i].money + "</td><td class='Rtd'>" + info + "</td></tr>";
                    }
                    $("#table_list").append(html);
                }
            });
        }
    </script>
</head>

<body>
 <div class="Header">  
  <p>我的资金</p>
  <span onclick="location.href = 'MyHome.html';"><img src="Images/Return.png"></span>
  <a href="MyCard.html">绑定银行卡</a>
 </div><!--Header end--> 
 <div class="SumMoney">
  <div class="Diamond"><img src="Images/Diamond.png"></div>
  <p class="SumSum Sizing"><span>余额（元）</span><b id="b_ye">--</b></p>
  <p class="TakeMoney"><a href="TakeCash.html">提现</a></p>
 </div><!--SumMoney end-->
 <p class="SumTitle">余额明细</p> 
 <ul class="SumItem">
  <li class="Sizing"><b style="color:#f90" id="b_by">--</b><span>本月收益</span></li>
  <li class="Sizing" style="border:none"><b style="color:#ff5f3e" id="b_lj">--</b><span>累计收益</span></li>
 </ul><!--SumItem end-->
 <table class="TakeRecord" cellpadding="0" cellspacing="0" id="table_list">
  <tr><th>时间</th><th>金额</th><th>明细</th></tr>
 </table><!--TakeRecord end-->
 <div class="MenuBar" id="menuDiv">
 </div><!--MenuBar end--> 
</body>
</html>
<script src="Js/common.js" type="text/javascript"></script>
<script src="Js/user.js" type="text/javascript"></script>
<script language="javascript">
    showmoney(); 
    listmoney()
</script>